package com.ruiysoft.controller.sys.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

import java.util.Objects;

/**
 * UserDto
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2018-10-28T15:44:49.584+08:00")

public class OrderRelationCommissionDto {

  @JsonProperty("id")
  private Long id = null;

//  @Pattern(regexp = "^[A-Za-z0-9]+$",message = "用户名不合法")
  @JsonProperty("username")
  private String username = null;
  @JsonProperty("userId")
  private String userId = null;

  @JsonProperty("headImgUrl")
  private String headImgUrl = null;

//  @Pattern(regexp = "^[\\u4e00-\\u9fa5]{0,}$",message = "姓名不合法")
  @JsonProperty("realName")
  private String realName = null;
// 订单个数
  @JsonProperty("orderCount")
  private double orderCount=0;

  // 订单金额
  @JsonProperty("orderAmount")
  private double orderAmount;

  // 佣金金额
  @JsonProperty("amount")
  private double amount;

  //分销规则名称
  private String distributionName;//
  // 分销规则Id
  private Long distributionId;//

  //分销员电话
  private String mobileNo;//

  public OrderRelationCommissionDto id(Long id) {
    this.id = id;
    return this;
  }

  public String getMobileNo() {
    return mobileNo;
  }

  public OrderRelationCommissionDto setMobileNo(String mobileNo) {
    this.mobileNo = mobileNo;
    return this;
  }

  public String getUserId() {
    return userId;
  }

  public OrderRelationCommissionDto setUserId(String userId) {
    this.userId = userId;
    return this;
  }

  /**
   * Get id
   * @return id
  **/
  @ApiModelProperty(value = "")


  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public OrderRelationCommissionDto username(String username) {
    this.username = username;
    return this;
  }

  /**
   * Get username
   * @return username
  **/
  @ApiModelProperty(example = "我是用户名", value = "")


  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public double getOrderCount() {
    return orderCount;
  }

  public OrderRelationCommissionDto setOrderCount(double orderCount) {
    this.orderCount = orderCount;
    return this;
  }

  public double getOrderAmount() {
    return orderAmount;
  }

  public OrderRelationCommissionDto setOrderAmount(double orderAmount) {
    this.orderAmount = orderAmount;
    return this;
  }

  public String getRealName() {
    return realName;
  }

  public OrderRelationCommissionDto setRealName(String realName) {
    this.realName = realName;
    return this;
  }

  public String getHeadImgUrl() {
    return headImgUrl;
  }

  public OrderRelationCommissionDto setHeadImgUrl(String headImgUrl) {
    this.headImgUrl = headImgUrl;
    return this;
  }

  public double getAmount() {
    return amount;
  }

  public void setAmount(double amount) {
    this.amount = amount;
  }

  public String getDistributionName() {
    return distributionName;
  }

  public void setDistributionName(String distributionName) {
    this.distributionName = distributionName;
  }

  public Long getDistributionId() {
    return distributionId;
  }

  public void setDistributionId(Long distributionId) {
    this.distributionId = distributionId;
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

